<template>
    <div class="detail-container">
        <div class="video">
            <video  autoplay="autoplay" loop src="https://x.dscmall.cn/storage/data/uploads/goods/1218/20201027135721674.mp4" id="movie"></video>
        </div>

        <div class="close" @click="close">
            <van-icon name="cross" />
        </div>

        <div class="bottom">
            <a href="javascript:;" class="goods-info">
                <div class="img-box">
                    <img src="https://img.alicdn.com/imgextra/i4/2087981999/O1CN01qKjdsN1QdaLpzbLn8_!!2087981999-0-lubanu-s.jpg_300x300.jpg" alt="">
                </div>
                <div class="text">
                    <h3>DR TRUE LOVE系列情圆一生求婚钻戒结婚钻石戒指女戒白18K金</h3>
                    <p>¥7060.00</p>
                </div>
            </a>
        </div>

        <div class="right-bottom">
             <div class="item">
                 <div class="icon-font">
                    <van-icon  name="like-o" />
                 </div>
                <span>1</span>
             </div>

             <div class="item">
                 <div class="icon-font">
                    <van-icon name="chat-o" />
                 </div>
                <span>1</span>
             </div>

             <div class="item">
                 <div class="icon-font">
                    <van-icon name="share-o" />
                 </div>
             </div>
        </div>
    </div>
</template>

<script>
// import store from "../../../store/index.js";
import router from "../../../router/index.js";
export default({
    setup() {
        const close = () => router.go(-1);


        return {
            close
        }
    },
})
</script>


<style lang="less" scoped>
 .detail-container{
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: #000;
    position: fixed;

    .video{
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;

        #movie{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
        }
    }

    .close{
        position: absolute;
        right: 1.25rem;
        top: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        color: #fff;
        font-size: 1.25rem;
        font-weight: 100;
        text-align: center;
        border-radius: 100%;
    }

    .bottom{
        position: absolute;
        bottom: 20px;
        left: 18px;
        right: 20px;
        // align-items: center;

        .goods-info{
            width: 80%;
            height: 70px;
            padding: 2px;
            border-radius: 5px;
            background-color: #fff;
            display: flex;
            justify-content: space-between;

            .img-box{
                width: 68px;
                height: 68px;
                margin-top: 1px;
                border-radius: 5px;
                overflow: hidden;
                flex: 0 0 auto;

                img{
                    width: 100%;
                }
            }

            .text{
                width: 70%;
                
                h3{
                    font-size: 14px;
                    font-weight: 500;
                    margin: 7px 0px 2px 0px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    color: #000;
                }

                p{
                    font-size: 14px;
                    color: #fd2f2f;
                }
            }
        }

        
    }

    .right-bottom{
        position: fixed;
        right: 20px;
        bottom: 50px;
        color: #fff;

        .item{
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 10px;

            .icon-font{
                width: 30px;
                height: 30px;
                border-radius: 100%;
                background: #fff;
                color: #000;
                font-size: 20px;
                text-align: center;
                line-height: 32px;
            }

            span{
                margin-top: 5px;
            }
        }
    }
 }

</style>